dont_get_screen_rotation
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Mon, 29 Oct 2018 19:59:29 +0000 (19:59 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Mon, 29 Oct 2018 19:59:29 +0000 (19:59 +0000)
Gbp-Pq: Name dont_get_screen_rotation.diff

src/plugins/platforms/xcb/qxcbscreen.cpp
src/plugins/platforms/xcb/qxcbscreen.h

index 94285b34e33d630636a5a975356e6a60cbc0931d..c34c72ac0a897f2597522e22afb75b1d50ef5221 100644 (file)
@@ -118,13 +118,6 @@ QXcbVirtualDesktop::QXcbVirtualDesktop(QXcbConnection *connection, xcb_screen_t
 
         xcb_depth_next(&depth_iterator);
     }
-
-    if (connection->hasXRandr()) {
-        xcb_connection_t *conn = connection->xcb_connection();
-        auto screen_info = Q_XCB_REPLY(xcb_randr_get_screen_info, conn, screen->root);
-        if (screen_info)
-            m_rotation = screen_info->rotation;
-    }
 }
 
 QXcbVirtualDesktop::~QXcbVirtualDesktop()
index 6438669e7a7d467061105185353a8191c205e9e6..792aca4b06c910847adc2bd544c56bc1b6ea4828 100644 (file)
@@ -220,7 +220,7 @@ private:
     xcb_randr_crtc_t m_crtc;
     xcb_randr_mode_t m_mode = XCB_NONE;
     bool m_primary = false;
-    uint8_t m_rotation = XCB_RANDR_ROTATION_ROTATE_0;
+    uint8_t m_rotation = 0;
 
     QString m_outputName;
     QSizeF m_outputSizeMillimeters;